/*
 * @Description: 
 * @Author: changqing
 * @Date: 2021-08-29 20:30:14
 * @LastEditTime: 2021-08-29 20:43:01
 * @LastEditors: changqing
 * @Usage: 
 */

var { of } = require('rxjs');
var { map } =  require('rxjs/operators');
of(1, 2, 3, 4).pipe(
  map(value => value * 2)
).subscribe(value => console.log(`${value}`));
// 2,4,6,8